using System;
using System.Collections.Generic;
using System.Text;

using NSimpleDB.Service.Contract;

namespace NSimpleDB.Service.VistaDb.QueryProcessing.Compiler.AST
{
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors"), Serializable]
    public class QueryCompilerException : SimpleDBException
    {
        public const int ErrorUnexpectedEndOfQuery = 100;
        public const int ErrorInvalidSymbol = 200;
        public const int ErrorInSemantics = 300;

        public QueryCompilerException(int errorCode, string message) : base(errorCode, message) { }

        public QueryCompilerException(int errorCode, string message, params object[] args) : base(errorCode, message, args) { }

        public QueryCompilerException(int errorCode, string message, Exception innerException) : base(errorCode, message, innerException) { }
    }
}
